class ShippingMethod < ActiveRecord::Base
  set_table_name :eshop_shipping_methods

  acts_as_list
  
  validates :name, :presentation, :length => {:maximum => 30}, :presence => true
  validates :price, :numericality => true

  has_many :products, :through => :product_has_shipping_method
  
  def is_hidden?
    self.hidden
  end
end
